package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author ck
 * @date 2021/11/18 20:07
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "user_comment")
public class UserComment implements Serializable {

    //主键id
    private ObjectId id;
    //视频id
    private Long vid;
    //评论人id
    private Long userId;
    //视频发布者id
    private Long vUserId;
    //评论内容
    private String content;
    //评论被赞数量
    private Integer likeCount = 0;
    //创建时间
    private Long created;

}
